#pragma once
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/foreach.hpp>
#include <string>

#include <exception>
#include <iostream>
#include <vector>
#include <boost/shared_ptr.hpp>
namespace pt = boost::property_tree;
//]
//[debug_settings_data

struct stCfg
{
	int isnet;
	std::string name;
	std::string serial;
	std::string ip;
	std::string devid;
	int         port;
	int         slave;
};

struct CConfig
{
    std::vector<boost::shared_ptr<stCfg>> m_list;               // log filename
                     // debug level
    void load(const std::string &filename);
    void save(const std::string &filename);
	boost::shared_ptr<stCfg> find(std::string devid);
};
